//package com.atguigu.lease.common.minio;
//
//import io.minio.MinioClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@EnableConfigurationProperties(MinioProperties.class)
//public class MinioConfiguration {
//
//    @Autowired
//    private MinioProperties minioProperties;
//
//    @Bean
//    public MinioClient minioClient() {
//        MinioClient.Builder builder = MinioClient.builder();
//
//        builder = builder.endpoint(minioProperties.getEndpoint());
//
//        builder = builder.credentials(minioProperties.getAccessKey(),minioProperties.getSecretKey());
//
//        MinioClient client = builder.build();
//
//        return client;
//    }
//}
